// 

export const getProjectList = async (params) => {
    params.pageSize = params.pageSize || 10;
    params.pageNumber = params.pageNumber || 1;
    return await new Promise((resolve, reject) => {
        axios.get('/index/Setprojectauth/getProjectList', {
            params: params
        }).then(res => {
            resolve(res.data.data);
        }).catch(err => {
            reject(err);
        });
    });
}

export const getProjectAuth = async (params) => {
    return await new Promise((resolve, reject) => {
        axios.get('/index/Setprojectauth/getProjectAuth', {
            params: params
        }).then(res => {
            resolve(res.data.data);
        }).catch(err => {
            reject(err);
        });
    });
}

export const saveProjectAuth = async (params) => {
    return await new Promise((resolve, reject) => {
        axios.post('/index/Setprojectauth/saveProjectAuth', params).then(res => {
            resolve(res);
        }).catch(err => {
            reject(err);
        })
    })
}
